package com.rd.student.dashuju.zhengruixian.test0801;

import java.util.Arrays;

public class Delete {
    public static void main(String[] args) {
        int[] arr1=new int[]{1,3,4,5,7,9,11,13,15,17};
        delete(arr1,6);
        arr1[arr1.length-1]=0;
        System.out.println(Arrays.toString(arr1));
    }
    public static void delete(int[] arr1,int index){
        for (int i= index;i< arr1.length-1;i++){
            arr1[i]=arr1[i+1];
        }
    }
}
